package com.wmh.baseservice.operationaid.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商品数据-商品图片
 * @author 牛威龙
 * @TableName operation_aid_product_picture
 * @createDate 2023-09-04 09:01:22
 */
@Data
@Accessors(chain = true)
@TableName("operation_aid_product_picture")
public class ProductPicture implements Serializable {
    /**
     * 主键
     */
    @TableId(value = COL_ID ,type = IdType.AUTO)
    private Long id;

    /**
     * 类别
     */
    @TableField(value = COL_CATEGORY)
    private String category;

    /**
     * 图片路径
     */
    @TableField(value = COL_IMAGE_PATH)
    private String imagePath;

    /**
     * 创建时间
     */
    @TableField(value = COL_CREATE_TIME)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = COL_UPDATE_TIME)
    private LocalDateTime updateTime;

    /**
     * 是否删除 0 否 1是
     */
    @TableField(value = COL_DELETED)
    @TableLogic
    private Integer deleted;

    /**
     * 主键
     */
    public static final String COL_ID = "id";

    /**
     * 类别
     */
    public static final String COL_CATEGORY = "category";

    /**
     * 图片路径
     */
    public static final String COL_IMAGE_PATH = "image_path";

    /**
     * 创建时间
     */
    public static final String COL_CREATE_TIME = "create_time";

    /**
     * 更新时间
     */
    public static final String COL_UPDATE_TIME = "update_time";

    /**
     * 是否删除 0 否 1是
     */
    public static final String COL_DELETED = "deleted";

    @TableField(exist = false)
    static final long serialVersionUID = 1L;
}
